package cn.stylefeng.guns.modular.order.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.order.entity.WeightPrice;
import cn.stylefeng.guns.modular.order.model.params.WeightPriceParam;
import cn.stylefeng.guns.modular.order.model.result.WeightPriceResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 重量与价格表 服务类
 * </p>
 *
 * @author zhou
 * @since 2019-08-05
 */
public interface WeightPriceService extends IService<WeightPrice> {

    /**
     * 新增
     *
     * @author zhou
     * @Date 2019-08-05
     */
    void add(WeightPriceParam param);

    /**
     * 删除
     *
     * @author zhou
     * @Date 2019-08-05
     */
    void delete(WeightPriceParam param);

    /**
     * 更新
     *
     * @author zhou
     * @Date 2019-08-05
     */
    void update(WeightPriceParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhou
     * @Date 2019-08-05
     */
    WeightPriceResult findBySpec(WeightPriceParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhou
     * @Date 2019-08-05
     */
    List<WeightPriceResult> findListBySpec(WeightPriceParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhou
     * @Date 2019-08-05
     */
     LayuiPageInfo findPageBySpec(WeightPriceParam param);

    List<WeightPriceResult> getAll();
}
